package com.four.hospital.service.impl;


import com.four.hospital.dao.DoctorAndUserDao;
import com.four.hospital.entity.DoctorAndUser;
import com.four.hospital.service.DoctorAndUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author:luojie
 * @Date: 2022/01/05/18:39
 * @Description
 */
@Service
public class DoctorAndUserServiceImpl implements DoctorAndUserService {


    @Autowired
    private DoctorAndUserDao doctorAndUserDao;


    /**
     * 中间表根据患者id回显数据
     *
     * @param duId
     * @return
     */
    @Override
    public DoctorAndUser docAndUser(Integer duId) {
        return doctorAndUserDao.docAndUser(duId);
    }
}
